﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace WeChatDataSrc
{
    class ReadMax
    {
        private static string SceneMaxURL = ConfigurationSettings.AppSettings["SceneMaxURL"];
        private static string CityMaxURL = ConfigurationSettings.AppSettings["CityMaxURL"];
        private static string RadarMaxURL = ConfigurationSettings.AppSettings["RadarMaxURL"];
        private static string RefineMaxURL = ConfigurationSettings.AppSettings["RefineMaxURL"];
        private static string TextForeMaxURL = ConfigurationSettings.AppSettings["TextForeMaxURL"];
        private static string DayForeMaxURL = ConfigurationSettings.AppSettings["DayForeMaxURL"];
        private static string RadarForeMaxURL = ConfigurationSettings.AppSettings["RadarForeMaxURL"];
        private static string MinuteForeMaxURL = ConfigurationSettings.AppSettings["MinuteForeMaxURL"];

        /// <summary>
        /// 得到实况最新的日期
        /// </summary>
        /// <returns></returns>
        public static string ReadMaxScene()
        {
            return HttpPost.SendData(SceneMaxURL, "");
        }

        public static string ReadMaxCityFore()
        {
            return HttpPost.SendData(CityMaxURL, "");
        }

        public static string ReadMaxRadar()
        {
            return HttpPost.SendData(RadarMaxURL, "");
        }

        public static string ReadMaxRefine()
        {
            return HttpPost.SendData(RefineMaxURL, "");
        }

        public static string ReadMaxText()
        {
            return HttpPost.SendData(TextForeMaxURL, "");
        }

        public static string ReadMaxDayFore()
        {
            return HttpPost.SendData(DayForeMaxURL, "");
        }

        public static string ReadMaxRadarFore()
        {
            return HttpPost.SendData(RadarForeMaxURL, "");
        }

        public static string ReadMaxMinuteFore()
        {
            return HttpPost.SendData(MinuteForeMaxURL, "");
        }

    }
}
